package com.liuweiheng.cloud.controller;


import com.liuweiheng.base.exception.UserException;
import com.liuweiheng.base.utils.GlobalRedisUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redis")
public class RedisController {

    @GetMapping("/test")
    public String test() {
        return String.valueOf(GlobalRedisUtil.setVal("age", "100"));
    }

}
